package com.lagou.service;

import com.github.pagehelper.PageInfo;
import com.lagou.domain.ResponseResult;
import com.lagou.domain.Role;
import com.lagou.domain.User;
import com.lagou.domain.UserVO;

import java.util.List;

public interface UserService {
    //查询所有用户
    public PageInfo findAllUserByPage(UserVO userVo);

    //修改用户状态
    public void updateUserStatus(Integer id, String status);

    //登录
    public User login(User user) throws Exception;

    //获取用户拥有的角色
    public List<Role> findUserRelationRoleById(int id) ;

    //用户关联角色
    public void userContextRole(UserVO userVo);

    //获取用户权限
    public ResponseResult getUserPermissions(Integer id);
}
